//To find the number of even, odd and prime numbers from 0 to 1000.
class prog10
	{
	public static void main(String args[])
		{
		
		//Even numbers
		int ce=0;
		for(int i=0;i<=1000;i++)
			{
			if(i%2==0)
				ce++;
			}
			System.out.println("The number of even numbers inbetween 0 and 1000 is " +  (ce-1));
		
		//Odd numbers
		int co=0;
		for(int i=0;i<=1000;i++)
			{
			if(i%2!=0)
				co++;
			}
			System.out.println("The number of odd numbers inbetween 0 and 1000 is " +  co);

		//Prime numbers
		int cp=0,count,num;
		for(int i=0;i<1000;i++)	
			{
			num=i;
			count=0;
			for(int x=1;x<num && count<=1;x++)
				if(num%x==0)
					count++;
			if(count<=1)
				cp++;
			}
		System.out.println("The number of prime numbers inbetween 0 and 1000 is " + cp);
		}
	}